package se.teamscape.client.presenter;

import java.util.ArrayList;

import net.customware.gwt.presenter.client.EventBus;
import se.teamscape.client.utils.NameValuePair;

import com.google.gwt.event.dom.client.HasClickHandlers;

/**
 * A generic edit data presenter. Any specific presenter that wants to present
 * data may inherit this.
 * 
 * @author Andreas Borglin
 * 
 */
public abstract class EditDataPresenter extends BasePresenter<EditDataPresenter.Display> {

    public interface Display extends BasePresenter.Display {

        void setData(ArrayList<NameValuePair<String>> data);

        HasClickHandlers getSave();

        HasClickHandlers getCancel();
    }

    public EditDataPresenter(Display display, EventBus eventBus) {
        super(display, eventBus);
    }

}
